<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
    <title>useState钩子函数</title>
</head>

<body>
    <script>
        import React, {
            useState
        } from 'react'

        // 第一个参数是保存的状态，第二个参数是设置状态的方法
        const [count, setCount] = useState(0)
    </script>
</body>

</html>